#ifndef __losor_parse_history_h__
#define __losor_parse_history_h__

#include "token.h"
#include "expression.h"
#include <list.h>

#ifdef __cplusplus
extern "C" {
#endif

typedef struct _lex_his
{
    exp_tree *e;
    int until;
} lex_his;

void init_history( );
void uninit_history( );
int add_parse( token *key, const lex_his *lex );
lex_his* find_parse( token *key );

#ifdef __cplusplus
};
#endif

#endif // __losor_parse_history_h__
